package com.baidu.www;
class OuterClass1{
    public int data1=1;
    public int data2=2;
    public static int data3=3;

    static class InnerClass{
        public int data1=100;
        private int data5=5;
        public static int data6=6;

        public void test1(){
            System.out.println("InnerClass");
            System.out.println(new OuterClass().data2);
            System.out.println(data3);

            System.out.println(data5);
            System.out.println(data6);
            //静态的不能访问外部类的成员变量
        }
    }
    public void test1(){
        System.out.println("OuterClass");
    }

}
public class Text3 {
    public static void main(String[] args) {
        OuterClass1.InnerClass innerClass=new OuterClass1.InnerClass();
    }
}
